<div class="add-groups-single-hook">
    <div class="title">
        当前位置：单灯管理&nbsp&nbsp;->&nbsp;<span class="active"><span v-text="title"></span>单灯</span>
    </div>
    <div class="detail-header fr">
        <h3 class="choice"><span v-text="title"></span>单灯</h3>
     <!--   <a class="primary_btn" @click.stop="goBack()">返回</a>-->
    </div>
    <div class="inner-wrapper add_single_wrapper">
        <form class="form-horizontal add-form-single-hook" method="post">
        <div class="add_single_map" id="add_single_map" style="height: 550px;"></div>
        <div class="search_city input-group">
            <input type="text" class="form-control" name="keyword" placeholder="搜索地点"  @keyup.enter ="searchCity()">
        </div>
        <div class="add_single_wrap">
            <div class="row">
                <div class="col-xs-6">
                    <span class="col-xs-2">单灯名称</span>
                    <input type="text" class="col-xs-7 input_xs" name="singleName">
                </div>
                <div class="col-xs-6">
                    <span class="col-xs-2">终端编号</span>
                    <input type="text" class="col-xs-7 input_xs" name="keyword">
                </div>
            </div>
            <div class="row">
                <div class="col-xs-6">
                    <span class="col-xs-2">控制器类型</span>
                    <select class="col-xs-7" name="control_type">
                        <option value="">全部</option>
                        <option v-for="(type,index) in control_type  " :value="type.id" v-text="type.name"></option>
                    </select>
                </div>
                <div class="col-xs-6">
                    <span class="col-xs-2">设备ID</span>
                    <input type="text" class="col-xs-7 input_xs" name="keyword">
                </div>
            </div>
            <div class="row">
                <div class="col-xs-6">
                    <span class="col-xs-2">单灯编号</span>
                    <input type="text" class="col-xs-7 input_xs" name="keyword">
                </div>
                <div class="col-xs-6">
                    <span class="col-xs-2">安装时间</span>
                    <input type="text" class="col-xs-7 input_xs" name="keyword">
                </div>
            </div>
            <div class="row">
                <div class="col-xs-6">
                <span class="col-xs-2">所属项目</span>
                <select class="col-xs-7" name="control_type">
                    <option value="">全部</option>
                    <option v-for="(type,index) in control_type  " :value="type.id" v-text="type.name"></option>
                </select>
                </div>
                <div class="col-xs-6">
                    <span class="col-xs-2">所属组</span>
                    <select class="col-xs-7" name="control_type">
                        <option value="">全部</option>
                        <option v-for="(type,index) in control_type  " :value="type.id" v-text="type.name"></option>
                    </select>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-6">
                    <span class="col-xs-2">IMEI号</span>
                    <input type="text" class="col-xs-7 input_xs" name="IMEI" v-model="info.IMEI">
                </div>
                <div class="col-xs-6">
                    <span class="col-xs-2">IMSI号</span>
                    <input type="text" class="col-xs-7 input_xs" name="imsi" id="selectedIMSI">
                </div>
            </div>
            <div class="row">
                <div class="col-xs-6">
                    <span class="col-xs-2">经度</span>
                    <input type="text" class="col-xs-7 input_xs" name="lng" v-model="info.lng" readonly>
                </div>
                <div class="col-xs-6">
                    <span class="col-xs-2">纬度</span>
                    <input type="text" class="col-xs-7 input_xs" name="lat" v-model="info.lat" readonly>
                </div>
            </div>
            <div class="row">

                <span class="col-xs-1" style="width:10%;text-align:left ">备注</span>
                <textarea class="col-xs-9" name="keyword" style="width: 77.8%"></textarea>
            </div>
        </div>
        <div style="text-align: center; margin: 10px 0" id="edit_submit">
            <button class="default_btn" @click.stop="goBack">取消</button>
            <button class="primary_btn" @click.stop="saveEdit" style="padding:8px 25px;">确认</button>
        </div>
    </div>
    </form>
</div>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=gAcDsfWUz7Wx0XzjGGfmVIWA6h2hhnCk"></script>
<script type="text/javascript" src="http://api.map.baidu.com/library/TextIconOverlay/1.2/src/TextIconOverlay_min.js"></script>
<script type="text/javascript" src="js/back/operate/single_lamp/add-single.js" custom></script>